package com.atguigu.webadmin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.model.pojo.LeaseTerm;
import com.atguigu.webadmin.service.LeaseTermService;
import com.atguigu.webadmin.mapper.LeaseTermMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author 梅超凡
 * @Date 2024/11/12~20:29
 * @Description 针对表【lease_term(租期)】的数据库操作Service实现
*/
@Slf4j
@Service
public class LeaseTermServiceImpl extends ServiceImpl<LeaseTermMapper, LeaseTerm>
    implements LeaseTermService{

    @Autowired
    private LeaseTermMapper leaseTermMapper;
    @Override
    public List<LeaseTerm> listLeaseTerm() {
        List<LeaseTerm> leaseTerms = leaseTermMapper.selectList(null);
        log.info("查询成功：{}",leaseTerms);
        return leaseTerms;
    }

}




